package SHIYAN;

public class SHIYAN10 {
    public static void main(String[] args) {
        int[][] arr = new int[10][10];
        int i=0;

        for(;i<=9;i++)
        {
            arr[i][0] = 1;
            for(int j =0;j<=i;j++)
            {
                arr[i][i] =1;

                if(j>=1 && i>=2)
                    arr[i][j] = arr[i-1][j] + arr[i-1][j-1];
                System.out.printf(arr[i][j]+"\t");
            }
            System.out.println();
        }
    }
}